&nbsp 请填写control: &nbsp
<div>&nbsp</div>
<textarea type="text" style="height: 210px;width: 600px" class="form-control" name="control_content"
          id="control_content">
    {{ control_content.control_content }}
</textarea>
<div>
    <span>&nbsp</span>
    <span>&nbsp</span>
</div>
<div>
    <button type="button" data-loading-text="Loading..." class="btn btn-primary" id="exec_sqlldr"
            style="position:absolute;left:50px;">
        执行sqlldr
    </button>
</div>


<script>
    $('#exec_sqlldr').click(function () {
        console.log('exec_sqlldr')
        $.ajax({
            type: "POST",
            data: {
                'conn_string': $('#conn_string').val(),
                'control_content': $('#control_content').val()
            },
            url: "/oratk_app/oratk_most_sqlldr_exec_ajax", //后台处理函数的url
            cache: false,
            dataType: "html",
            beforeSend: function () {
                // $('#loadingModal').modal({backdrop: 'static', keyboard: false});
                showLoading()
                //$('#submit_id').button('loading')
            },
            complete: function () {
                //$('#loadingModal').modal('hide');
                hideLoading()
                //$('#submit_id').button('reset')
            },
            success: function (result) {
                if (result === 'ok') {
                    alert('sqlldr执行完成')
                    location.reload();
                } else {
                    alert('执行sqlldr发生错误，ERROR:\n' +
                        result);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert(XMLHttpRequest.responseText);
            },
        })

    })
    $('#manual_format').click(function () {
        console.log('manual_format')
        $.ajax({
            type: "POST",
            data: {
                'file_name': $('#file_parse').val(),
                'sheet_name': $('#sheet_list').val(),
                'cut_str': $('#cut_str').val(),
                'quote_str': $('#quote_str').val()
            },
            url: "/oratk_app/oratk_most_sqlldr_manual_format_ajax", //后台处理函数的url
            cache: false,
            dataType: "html",
            beforeSend: function () {
                // $('#loadingModal').modal({backdrop: 'static', keyboard: false});
                showLoading()
                //$('#submit_id').button('loading')
            },
            complete: function () {
                //$('#loadingModal').modal('hide');
                hideLoading()
                //$('#submit_id').button('reset')
            },
            success: function (result) {
                if (result === 'ok') {
                    location.reload();
                } else {
                    alert('手工格式化出错，ERROR:\n' +
                        result);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert(XMLHttpRequest.responseText);

            },
        })

    })
</script>